<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: Texture类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_texture-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">Texture类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>纹理管理器  
 <a href="class_texture.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_texture_8h_source.html">Texture.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a909fa1a03e35f2227dfc143bc7ec931b"><td class="memItemLeft" align="right" valign="top"><a id="a909fa1a03e35f2227dfc143bc7ec931b" name="a909fa1a03e35f2227dfc143bc7ec931b"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>TextTextureStartType</b> { <b>CENTER</b>
, <b>LOWER_LEFT</b>
 }</td></tr>
<tr class="separator:a909fa1a03e35f2227dfc143bc7ec931b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa28dcdc795d67ef45b4c6cd3a1e63962"><td class="memItemLeft" align="right" valign="top"><a id="aa28dcdc795d67ef45b4c6cd3a1e63962" name="aa28dcdc795d67ef45b4c6cd3a1e63962"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>drawImage</b> (const QString &amp;img_path, const <a class="el" href="class_point.html">Point</a> &amp;start_pos, float width, float height, float window_width, float window_height, float img_width, float img_height, float rotation_z=0, float rotation_y=0, float rotation_x=0)</td></tr>
<tr class="separator:aa28dcdc795d67ef45b4c6cd3a1e63962"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39bd8661a430cc9e8ecd05afb3851243"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_texture.html#a39bd8661a430cc9e8ecd05afb3851243">drawImage</a> (const QPair&lt; QString, QImage * &gt; &amp;image, const <a class="el" href="class_point.html">Point</a> &amp;start_pos, float width, float height, float window_width, float window_height, float img_width, float img_height, float rotation_z=0, float rotation_y=0, float rotation_x=0)</td></tr>
<tr class="separator:a39bd8661a430cc9e8ecd05afb3851243"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02a1ce144c1214f09623142bc9157b57"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_texture.html#a02a1ce144c1214f09623142bc9157b57">drawText</a> (const QString &amp;text, const QFont &amp;font, const QColor &amp;fontColor, const <a class="el" href="class_point.html">Point</a> &amp;start_pos, TextTextureStartType start_type, float window_width, float window_height, float rotation_z=0, float rotation_y=0, float rotation_x=0)</td></tr>
<tr class="memdesc:a02a1ce144c1214f09623142bc9157b57"><td class="mdescLeft">&#160;</td><td class="mdescRight">绘制文字  <a href="class_texture.html#a02a1ce144c1214f09623142bc9157b57">更多...</a><br /></td></tr>
<tr class="separator:a02a1ce144c1214f09623142bc9157b57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad841dc48560556f5995d731d2b1924a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_texture.html#aad841dc48560556f5995d731d2b1924a">solidFill</a> (const QRgb &amp;rgb, const <a class="el" href="class_point.html">Point</a> &amp;start_pos, float width, float height, float window_width, float window_height, float rotation_z=0, float rotation_y=0, float rotation_x=0)</td></tr>
<tr class="memdesc:aad841dc48560556f5995d731d2b1924a"><td class="mdescLeft">&#160;</td><td class="mdescRight">绘制纯色区域  <a href="class_texture.html#aad841dc48560556f5995d731d2b1924a">更多...</a><br /></td></tr>
<tr class="separator:aad841dc48560556f5995d731d2b1924a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a10e107ad3519953467d0a96fe35d0581"><td class="memItemLeft" align="right" valign="top"><a id="a10e107ad3519953467d0a96fe35d0581" name="a10e107ad3519953467d0a96fe35d0581"></a>
static <a class="el" href="class_texture.html">Texture</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>GetInstance</b> ()</td></tr>
<tr class="separator:a10e107ad3519953467d0a96fe35d0581"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >纹理管理器 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a39bd8661a430cc9e8ecd05afb3851243" name="a39bd8661a430cc9e8ecd05afb3851243"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39bd8661a430cc9e8ecd05afb3851243">&#9670;&nbsp;</a></span>drawImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Texture::drawImage </td>
          <td>(</td>
          <td class="paramtype">const QPair&lt; QString, QImage * &gt; &amp;&#160;</td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>start_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>window_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>window_height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>img_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>img_height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rotation_z</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rotation_y</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rotation_x</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >绘制序列帧，图片宽高自动获取，用法与对应的重载函数类似 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td></td></tr>
    <tr><td class="paramname">start_pos</td><td></td></tr>
    <tr><td class="paramname">width</td><td></td></tr>
    <tr><td class="paramname">height</td><td></td></tr>
    <tr><td class="paramname">window_width</td><td></td></tr>
    <tr><td class="paramname">window_height</td><td></td></tr>
    <tr><td class="paramname">rotation_z</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a02a1ce144c1214f09623142bc9157b57" name="a02a1ce144c1214f09623142bc9157b57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02a1ce144c1214f09623142bc9157b57">&#9670;&nbsp;</a></span>drawText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Texture::drawText </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QFont &amp;&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QColor &amp;&#160;</td>
          <td class="paramname"><em>fontColor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>start_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TextTextureStartType&#160;</td>
          <td class="paramname"><em>start_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>window_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>window_height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rotation_z</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rotation_y</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rotation_x</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>绘制文字 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td></td></tr>
    <tr><td class="paramname">font</td><td></td></tr>
    <tr><td class="paramname">fontColor</td><td></td></tr>
    <tr><td class="paramname">start_pos</td><td></td></tr>
    <tr><td class="paramname">start_type</td><td></td></tr>
    <tr><td class="paramname">window_width</td><td></td></tr>
    <tr><td class="paramname">window_height</td><td></td></tr>
    <tr><td class="paramname">rotation_z</td><td></td></tr>
    <tr><td class="paramname">rotation_y</td><td></td></tr>
    <tr><td class="paramname">rotation_x</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aad841dc48560556f5995d731d2b1924a" name="aad841dc48560556f5995d731d2b1924a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad841dc48560556f5995d731d2b1924a">&#9670;&nbsp;</a></span>solidFill()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Texture::solidFill </td>
          <td>(</td>
          <td class="paramtype">const QRgb &amp;&#160;</td>
          <td class="paramname"><em>rgb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>start_pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>window_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>window_height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rotation_z</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rotation_y</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rotation_x</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>绘制纯色区域 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rgb</td><td></td></tr>
    <tr><td class="paramname">start_pos</td><td></td></tr>
    <tr><td class="paramname">width</td><td></td></tr>
    <tr><td class="paramname">height</td><td></td></tr>
    <tr><td class="paramname">window_width</td><td></td></tr>
    <tr><td class="paramname">window_height</td><td></td></tr>
    <tr><td class="paramname">rotation_z</td><td></td></tr>
    <tr><td class="paramname">rotation_y</td><td></td></tr>
    <tr><td class="paramname">rotation_x</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Utils/OpenGL/<a class="el" href="_texture_8h_source.html">Texture.h</a></li>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Utils/OpenGL/Texture.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
